import Vue from 'vue'
import App from './App'
import FloatMath from '@/common/FloatMath.js'

// 引入 vuex
import store from './store'

// 引入request
import post from '@/common/request/post.js'
import vpost from '@/common/request/vpost.js'

import uView from "uview-ui"
Vue.use(uView);

//把vuex定义成全局组件
Vue.prototype.$store = store

// 引入 request post
Vue.prototype.$post = post
Vue.prototype.$vpost = vpost

Vue.config.productionTip = false

// filter
Vue.filter('priceFilter', function (price) {
  return FloatMath.accDiv(price, 100).toFixed(2)
})

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
